Extract various quantities of interest from an object of class
fair.model
.
# methods for all fair.model objects.
# S3 method for fair.model
coef(object, ...)
# S3 method for fair.model
residuals(object, ...)
# S3 method for fair.model
fitted(object, type = "response", ...)
# S3 method for fair.model
sigma(object, ...)
# S3 method for fair.model
deviance(object, ...)
# S3 method for fair.model
logLik(object, ...)
# S3 method for fair.model
nobs(object, ...)
# S3 method for fair.model
print(x, digits, ...)
# S3 method for fair.model
summary(object, ...)
# S3 method for fair.model
all.equal(target, current, ...)
# S3 method for fair.model
plot(x, diagonal = FALSE, regression = FALSE, ...)# predict() methods.
# S3 method for nclm
predict(object, new.predictors, new.sensitive, type = "response", ...)
# S3 method for zlm
predict(object, new.predictors, type = "response", ...)
# S3 method for zlrm
predict(object, new.predictors, type = "response", ...)
# S3 method for frrm
predict(object, new.predictors, new.sensitive, type = "response", ...)
# S3 method for fgrrm
predict(object, new.predictors, new.sensitive, type = "response", ...)
an object of class fair.model
or
nclm
.
a character string, the type of fitted value. If
"response"
, fitted()
and predict()
will return the
fitted values (if the response in the model is continuous) or the
classification probabilities (if it was discrete). If "class"
and
object
is a classifier, fitted()
and predict()
will
return the class labels as a factor. If "link"
and object
is a
classifier, fitted()
and predict()
will return the linear
component of the fitted or predicted value, on the scale of the link
function.
a non-negative integer, the number of significant digits.
a numeric matrix or a data frame containing numeric and factor columns; the predictors for the new observations.
a numeric matrix or a data frame containing numeric and factor columns; the sensitive attributes for the new observations.
a logical value, whether to draw the diagonal of the first
quadrant in plot()
.
a logical value, whether to draw the regression line of the
observed values on the fitted values from the model in plot()
.
additional arguments, currently ignored.